package game.feign.fallback;

import common.config.feign.FallbackFactoryUtil;
import feign.hystrix.FallbackFactory;
import game.feign.GatewayFeign;
import org.springframework.stereotype.Component;

/**
 * @author 米泽鹏
 * @since 2022-3-31 下午 10:29
 */
@Component
public class GatewayFeignFallbackFactory implements FallbackFactory<GatewayFeign> {

	@Override
	public GatewayFeign create(Throwable throwable) {
		return FallbackFactoryUtil.create(throwable, new GatewayFeign() {
		});
	}

}
